{include file=$header_start}
{strip}
<link rel="stylesheet" type="text/css" href="{$siteroot}/templates/default/style/dashboard.css">
<link rel="stylesheet" type="text/css" href="{$siteroot}/templates/default/style/find_job_list.css">
{/strip}


{include file=$header_end}


<section class="middle_portion">
	<section class="inner_head">Dashboard</section>
    <section class="inner_containstart">
    	<!-- dashboard Left Content Start -->
        	{include file=$cms_left_content}
        <!-- dashboard Left Content End -->
        <!-- dashboard Right Content Start -->
        	<section class="dash_right">
            <section class="title_box">
            {if $smarty.get.id2 && $smarty.get.id2 neq 'parent'}
            <h4> Job Type For "{$parentArray.trade_category|ucfirst}"<a class="rF" href="{$siteroot}/myaccount/1/mytradecategory">Back</a></h4>
            {else}
		        <span class="lF">
                  	<h4> My Trade Categories</h4>
                </span>                 
                <span class="rF" style="padding-top:10px;" >"Want to add Job Type? Click on Job Type count." </span>
            {/if}
            	 <section class="clear"></section>
                 
                </section>                             
				{if $msg}<span style="padding:10px;"> {$msg} </span>{/if}
                  <section class="mainbox_findjobs">
                  
				<section class="mytradecat_manag_box">

                {if $smarty.get.id2 && $smarty.get.id2 neq 'parent'}  <a style="margin:12px 0px 0px 5px" href="{$siteroot}/myaccount/{$smarty.get.id1}/{$smarty.get.id2}/addtradecategory" class="btn lF" >Add Job Type</a> {else}  <a style="margin:12px 0px 0px 5px"  href="{$siteroot}/myaccount/addtradecategory" class="btn lF" >Add Trade Category</a> {/if}

                <form name="searchfrm" id="searchfrm" {if $smarty.get.id2 && $smarty.get.id2 neq 'parent'} action="{$siteroot}/myaccount/{$smarty.get.id1}/{$smarty.get.id2}/mytradecategory/" {else} action="{$siteroot}/myaccount/mytradecategory/" {/if}  method="POST" >
                 <section class="group_search_box" style="padding-left:325px;">
                     <input type="text" name="search" id="search" class="input" value="{if $search neq ''}{$search}{else}Search{/if}" onfocus="this.value=''" onblur="if(this.value=='')this.value='Search'" />
                    <input type="submit" class="btn " value="Go">
                    &nbsp;&nbsp;
                    <input type="button" class="btn btnwdth70" value="Clear" {if $smarty.get.id2 && $smarty.get.id2 neq 'parent'} onclick="javascript:window.location='{$siteroot}/myaccount/{$smarty.get.id1}/{$smarty.get.id2}/mytradecategory';" {else} onclick="javascript:window.location='{$siteroot}/myaccount/mytradecategory';" {/if}>
                    <section class="clear"></section>
                  </section>
                  </form>
                	<dl>
                    	<dt class="col1" style="text-align:justify">{if $smarty.get.id2 && $smarty.get.id2 neq 'parent'}Job Type{else}Trade Category{/if}</dt>

                        {if $smarty.get.id2 && $smarty.get.id2 neq 'parent'}
                    	<dt class="col2"></dt>
                        <dt class="col3">Action</dt>
                        {else}
                       	<dt class="col2">Job Type</dt>
                        <dt class="col3">Action</dt>
                        {/if}
                        
                        <section class="clear"></section>
                    </dl>
                    {section name=i loop=$tradeArray}
                    <dl>
                    	<dd class="col1">{$tradeArray[i].trade_category}</dd>
                        {if $smarty.get.id2 && $smarty.get.id2 neq 'parent'}
                    	<dd class="col2" ></dd>
                        {else}
                        <dd class="col2" ><a href="{$siteroot}/myaccount/{$page}/{$tradeArray[i].id|base64_encode}/mytradecategory/" title="Job Type">[{$tradeArray[i].cntjobtype}]</a>  </dd>                        
                        {/if}
                        <dd class="col3"><a {if $smarty.get.id1 && $smarty.get.id2} href="{$siteroot}/myaccount/{$smarty.get.id1}/{$smarty.get.id2}/edit/{$tradeArray[i].id|base64_encode}/edittradecategory/" alt="Edit Job Type" title="Edit Job Type" {else} href="{$siteroot}/myaccount/{$tradeArray[i].id|base64_encode}/edit/edittradecategory/" alt="Edit Trade Category" title="Edit Trade Category" {/if} ><img src="{$siteroot}/templates/default/images/edit_icon.png" width="20" height="22" /></a> &nbsp; <a {if $smarty.get.id1 && $smarty.get.id2} href="{$siteroot}/myaccount/{$smarty.get.id1}/{$smarty.get.id2}/delete/{$tradeArray[i].id|base64_encode}/mytradecategory/" alt="Delete Job Type" title="Delete Job Type" {else} href="{$siteroot}/myaccount/delete/{$tradeArray[i].id|base64_encode}/mytradecategory/" alt="Delete Trade category" title="Delete Trade category" {/if} onclick="javascript:return confirm('Are you sure do you want to delete this record?');"><img src="{$siteroot}/templates/default/images/delete_icon.png" width="20" height="22" /></a> </dd>
                        <section class="clear"></section>
                    </dl>
                    {sectionelse}
                    	<div class="error" style="padding:10px;text-align:center;">Oops, Sorry there are no {if $smarty.get.id2 && $smarty.get.id2 neq 'parent'} job type {else}trade categoty{/if}.</div>
                    {/section}
                  		{if $pagenation}
                            <section class="pagna">
                            {$pagenation}
                            </section>
                        {/if}
                             

                        
                        <section class="clear"></section>
                </section>   
                
                <section class="clear"></section>
                 	 <section class="bgimg_shadow"></section>
                 	<section class="clear"></section>
                </section>  
                
            </section>
        <!-- dashboard Right Content End -->
        	<section class="clear"></section>
    </section>
</section>
{include file=$footer}
